import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    //登陆
    {
      path: "/",
      name: "index",
      component: () => import("@/views/home/index.vue"),
    },
    //demo
    {
      path: "/demo",
      name: "Demo",
      component: () => import("@/views/common/demo.vue"),
    },
     // 账号设置
     {
      path: "/accountSet",
      name: "AccountSet",
      component: () => import("@/views/AccountSet/index.vue"),
      children: [
        // 修改个人信息
        {
          path: "",
          name: "AccountSetIndex",
          component: () => import("@/views/AccountSet/editInfo.vue"),
        },
      ]
    },
  ]
});

export default router;
